package com.share.device.mqtt.handler.impl;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.share.common.core.utils.StringUtils;

import com.share.device.domain.Cabinet;

import com.share.device.domain.PowerBank;
import com.share.device.domain.Station;

import com.share.device.mqtt.annotation.ShareEmqx;
import com.share.device.mqtt.constant.EmqxConstants;
import com.share.device.mqtt.handler.MassageHandler;
import com.share.device.service.ICabinetService;

import com.share.device.service.IPowerBankService;
import com.share.device.service.IStationService;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.concurrent.TimeUnit;

@Slf4j
@Component
@ShareEmqx(topic = EmqxConstants.TOPIC_POWERBANK_UNLOCK)
public class PowerBankUnlockHandler implements MassageHandler {


    /**
     * 充电宝弹出后续处理
     * 处理消息:
     * @param message
     * {"messageNo":"7777","slotNo":"1","userId":1,
     * "cabinetNo":"xgxgxxxg","powerBankNo":"gg001"}
     */
    @Transactional(rollbackFor = Exception.class)
    @Override
    public void handleMessage(JSONObject message) {

    }
}

